package day05;
//随机加法运算器

import java.util.Scanner;

public class Addition {
    public static void main(String[] args) {
        /*
        Scanner scan = new Scanner(System.in);
        int score = 0;
        for (int i=1;i<=10;i++){
            int num1 = (int)(Math.random()*100);
            int num2 = (int)(Math.random()*100);
            int result = num1+num2;
            System.out.println("("+i+")"+num1+"+"+num2+"=?");
            System.out.println("算吧！");
            int answer = scan.nextInt();
            if(answer==result){
                System.out.println("答对了");
                score +=10;
            }else {
                System.out.println("答错了");
            }
        }
        System.out.println("总分为："+score);

         */

        /*
        for(int i=1;i<=9;i++){
            if(i==4){
                break;
            }
            System.out.println(i+"*9="+i*9);
        }

         */

        /*
                i=1     1*9=9
                i=2     2*9=18
                i=3     3*9=27
         */


        /*for(int i=1;i<=9;i++){
            if(i%3==0){
                continue;//跳过循环体中剩余的语句而进入下一次循环
            }
            System.out.println(i+"*9="+i*9);
        }
            if(i%3!=0){
                System.out.println(i+"*9="+i*9);
            }

         */
    }
}
